package com.timing.finder.framework;

import lombok.Getter;

/**
 * 应用处理的数据类型
 *
 * @author JingGe(* ^ ▽ ^ *)
 * @date 2023-03-08 15:47
 * @email 1158055613@qq.com
 */
@Getter
public class HandleType {
    /**
     * 数据库取出的时序数据
     */
    private final Class<? extends TimeSeriesData> timeSeriesDataType;

    /**
     * 存储到缓存的单位数据
     */
    private final Class<? extends CacheData> cacheDataType;

    public HandleType(Class<? extends TimeSeriesData> timeSeriesDataType, Class<? extends CacheData> cacheDataType) {
        this.timeSeriesDataType = timeSeriesDataType;
        this.cacheDataType = cacheDataType;
    }
}
